package 设计模式.h_组合模式;

/**
 * @author caihe
 * @date 2023/3/10 11:18
 */
public class College extends EduComposite {

    private String collegeName;
    private String tag;

    public College(String collegeName, String tag) {
        this.collegeName = collegeName;
        this.tag = tag;
    }

    @Override
    public void print() {
        System.out.println(collegeName + ":" + tag);
    }
}
